package com.wits.qso.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.wits.platform.service.BaseService;
import com.wits.qso.dao.CroomDao;
import com.wits.qso.entity.Croom;

@Component
public class CroomService extends BaseService<Croom, String> {
	
    private CroomDao croomDao;

    @Autowired
	public void setCroomDao(CroomDao croomDao) {
    	this.baseDao=croomDao;
		this.croomDao = croomDao;
	}
    
    public boolean hasByTitleAndCode(String title, String code) {
    	return null != croomDao.findByTitleAndCode( title, code );
    }
    
}
